﻿using System;
using Castle.DynamicProxy;

namespace WS.EKA.Core.Interceptor
{
    static class InterceptHelper
    {
        public static bool IsAttribute(Type t, IInvocation invocation)
        {
            object[] objs = invocation.Method.GetCustomAttributes(t, false);
            if (objs != null && objs.Length > 0)
                return true;
            else
                return false;
        }
    }
}
